<?php
declare (strict_types=1);

namespace app\exam\logic;

use think\facade\Cache;
use app\common\exception\LogicException;
use app\exam\model\Short as ShortModel;

/**
 * 简答题参考答案
 */
class Short extends ShortModel
{

	/**
	 * 获取参考答案
	 * Author 亓官雨树<lucky.max@foxmail.com>
	 * Date 2021-05-06
	 * @param  [type] $param [description]
	 * @return [type]        [description]
	 */
	public function getValueByTopicId(int $topic_id = 0, int $topic_type = 1)
	{
		$value = $this->whereTopicId($topic_id)->whereTopicType($topic_type)->value('value');
		
		return $value;
	}


}